from collections.abc import *

class A:
    pass

class B(A):
    pass

# 我们在某些情况之下希望判定某个对象的类型
from collections.abc import Sized

b = B()
print(isinstance(b, A))
